package com.andy.permission.constants

import android.Manifest
import android.os.Build
import androidx.annotation.RequiresApi

/**
 * Author:Andy
 * Date:2023/3/23 11:17
 * Description:Constants
 */
object Constants {
    const val CAMERA_PERMISSION = Manifest.permission.CAMERA
    const val READ_PERMISSION = Manifest.permission.READ_EXTERNAL_STORAGE
    const val WRITE_PERMISSION = Manifest.permission.WRITE_EXTERNAL_STORAGE
    const val READ_CONTACTS_PERMISSION = Manifest.permission.READ_CONTACTS
    const val RECORD_AUDIO_PERMISSION = Manifest.permission.RECORD_AUDIO
    const val PIP_PERMISSION = Manifest.permission.SYSTEM_ALERT_WINDOW
    const val READ_CALL_LOG_PERMISSION = Manifest.permission.READ_CALL_LOG
    const val READ_PHONE_STATE_PERMISSION = Manifest.permission.READ_PHONE_STATE
    const val CALL_PHONE_PERMISSION = Manifest.permission.CALL_PHONE
    const val NOTIFICATION_SERVICE = "android.permission.NOTIFICATION_SERVICE"

    @RequiresApi(Build.VERSION_CODES.O)
    const val ANSWER_PHONE_CALLS = Manifest.permission.ANSWER_PHONE_CALLS

    @RequiresApi(Build.VERSION_CODES.TIRAMISU)
    const val POST_NOTIFICATIONS = Manifest.permission.POST_NOTIFICATIONS

    @RequiresApi(Build.VERSION_CODES.TIRAMISU)
    const val READ_MEDIA_IMAGES = Manifest.permission.READ_MEDIA_IMAGES

    @RequiresApi(Build.VERSION_CODES.TIRAMISU)
    const val READ_MEDIA_VIDEO = Manifest.permission.READ_MEDIA_VIDEO

    @RequiresApi(Build.VERSION_CODES.TIRAMISU)
    const val READ_MEDIA_AUDIO = Manifest.permission.READ_MEDIA_AUDIO

    @RequiresApi(Build.VERSION_CODES.TIRAMISU)
    val READ_MEDIA = arrayOf(READ_MEDIA_IMAGES, READ_MEDIA_VIDEO, READ_MEDIA_AUDIO)

}